﻿@model ShenLanCMS.Models.User

@{
    ViewBag.Title = "个人信息";
    Layout = "~/Views/Shared/_PublicLayout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>个人信息 (<a href="/user/changepassword">修改密码</a>)</legend>

        @Html.HiddenFor(model => model.UserID)
        @Html.HiddenFor(model => model.Status)
        @Html.HiddenFor(model => model.UserName)
        @Html.HiddenFor(model => model.Password)
        @Html.HiddenFor(model => model.UserInfoID)

        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.UserName)
        </div> 

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PasswordQuestion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PasswordQuestion)
            @Html.ValidationMessageFor(model => model.PasswordQuestion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PasswordAnswer)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PasswordAnswer)
            @Html.ValidationMessageFor(model => model.PasswordAnswer)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegTime)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.RegTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastActivityTime)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.LastActivityTime)
        </div>

        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}


